package com.zbkj.common.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * 客户端修改密码请求对象
 * +----------------------------------------------------------------------
 * | CRMEB [ CRMEB赋能开发者，助力企业发展 ]
 * +----------------------------------------------------------------------
 * | Copyright (c) 2016~2025 https://www.crmeb.com All rights reserved.
 * +----------------------------------------------------------------------
 * | Licensed CRMEB并不是自由软件，未经许可不能去掉CRMEB相关版权
 * +----------------------------------------------------------------------
 * | Author: CRMEB Team <admin@crmeb.com>
 * +----------------------------------------------------------------------
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "ClientUpdatePasswordRequest", description = "客户端修改密码请求对象")
public class ClientUpdatePasswordRequest implements Serializable {

    private static final long serialVersionUID = 1L;

//    @ApiModelProperty(value = "旧密码", required = true)
//    @NotBlank(message = "旧密码不能为空")
//    private String oldPassword;

    @ApiModelProperty(value = "新密码", required = true)
    @NotBlank(message = "新密码不能为空")
    @Length(min = 6, max = 30, message = "密码长度在6-30个字符")
    private String newPassword;

//    @ApiModelProperty(value = "确认新密码", required = true)
//    @NotBlank(message = "确认密码不能为空")
//    @Length(min = 6, max = 30, message = "密码长度在6-30个字符")
//    private String confirmPassword;

} 